package com.ldatum.crm.service;

import java.sql.SQLException;
import java.util.List;

import com.ldatum.crm.domain.User;

public interface UserService {

	User query(String username) throws Exception;

	int save(User user) throws Exception;

	boolean validationLoginname(String loginname) throws SQLException;

	int update(User u) throws SQLException;

	List<User> list() throws SQLException;

	int updateStatusToStart(String ids) throws SQLException;

	int updateStatusToStoping(String ids) throws SQLException;

	User findById(int id) throws SQLException;

	int deletes(String ids) throws SQLException;

	boolean validationPwd(int id, String opwd) throws SQLException;

	int updatePwd(int id, String npwd) throws SQLException;
	
}
